﻿
using Microsoft.EntityFrameworkCore;

using System;

namespace Xc.DataAccess.DataBases.Core.Models
{
    /// <summary>
    /// 数据库构建器
    /// </summary>
    /// <typeparam name="TBuilder"></typeparam>
    public interface IDbModelBuilder<TBuilder> where TBuilder : IDbModelCreater
    {
        /// <summary>
        /// 构建数据库上下文
        /// </summary>
        /// <param name="buildContext"></param>
        /// <param name="modelBuilder"></param>
        public void Build(TBuilder buildContext, ModelBuilder modelBuilder) => buildContext.Create(modelBuilder);
    }
}
